package com.tszs.biz;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tszs.dao.mapper.HomeRotaryMapMapper;
import com.tszs.entity.HomeRotaryMap;
import com.tszs.entity.HomeRotaryMapExample;
/**
 * @ 类名:HomeRotaryMapBiz
 * @ 类描述:前台轮播图
 * @ 创建时间: 2019-03-21 11:49:11
 * @author 王俊
 *
 */
@Service
public class HomeRotaryMapBiz {
		@Autowired
		private HomeRotaryMapMapper homeRotaryMapMapper;
		/**
		 * @方法名: insertSelective
		 * @方法描述: 轮播图添加
		 * @创建时间: 2019-03-21 11:49:11
		 * @author: 王俊
		 * @return: 0失败 1成功
		 */
		@Transactional
		public  int insertSelective(HomeRotaryMap record) {
			return homeRotaryMapMapper.insertSelective(record);
		}
		/**
		 * @方法名: updateByExampleSelective
		 * @方法描述:  轮播图添加修改
		 * @创建时间: 2019-03-21 11:49:11
		 * @author: 王俊
		 * @return: 0失败 1成功
		 */
		@Transactional
		public int updateByExampleSelective(@Param("record") HomeRotaryMap record, @Param("example") HomeRotaryMapExample example) {
			return homeRotaryMapMapper.updateByExampleSelective(record, example);
		}
		/**
		 * @方法名: selectByExamplePage
		 * @方法描述:  轮播图分页
		 * @创建时间: 2019-03-21 11:49:11
		 * @author: 王俊
		 * @return: 0失败 1成功
		 */
		public List<HomeRotaryMap> selectByExamplePage(HomeRotaryMap example) {
			return homeRotaryMapMapper.selectByExamplePage(example);
		}
		/**
		 * @方法名: selectByExample
		 * @方法描述:  轮播图查询
		 * @创建时间: 2019-03-21 11:49:11
		 * @author: 王俊
		 * @return: 0失败 1成功
		 */
		public List<HomeRotaryMap> selectByExample(HomeRotaryMapExample example) {
			return homeRotaryMapMapper.selectByExample(example);
		}
}
